        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header"><i class="fa fa-user"></i> 用户管理</h2>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                 <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            用户列表 | <a class="btn btn-default btn-sm" href="<?=site_url()?>users/addUser"><i class="fa fa-user-plus"></i> 添加新用户</a>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover" id="usersTable">
                                    <thead>
                                        <tr>
                                            <th>用户ID</th>
                                            <th>用户名称</th>
                                            <th>电子邮件</th>
                                            <th>最后登录</th>
                                            <th>最近活动</th>
                                            <th>IP地址</th>
                                            <th>尝试登录</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	<?php foreach ($this->aauth->list_users() as $user):?>
                                        <tr class="odd gradeX">
                                            <td><?=$user->id?></td>
                                            <td><?=$user->name?></td>
                                            <td><?=$user->email?></td>
                                            <td><?=$user->last_login?></td>
                                            <td><?=$user->last_activity?></td>
                                            <td><?=$user->ip_address?></td>
                                            <td><?php if($user->login_attempts){?><?=$user->login_attempts?> - <?php }else{?>0 - <?php }?>  <a href="<?=site_url()?>users/resetAttempt/<?=$user->id?>" class="btn btn-xs btn-default">清零</a></td>
                                        	<td><a class="btn btn-primary btn-xs" href="<?=site_url()?>users/editUser/<?=$user->id?>"><i class="fa fa-pencil-square-o "></i> 修改</a> | <a class="btn btn-danger btn-xs" href="<?=site_url()?>users/delete/<?=$user->id?>"><i class="fa fa-trash-o"></i> 删除</a></td>
                                        </tr>
                                        <?php endforeach;?>
                                       
					

                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                           
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->
         <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#catTable').DataTable({
                resposive:true,
                "language": {
                	"sProcessing":   "处理中...",
                	"sLengthMenu":   "显示 _MENU_ 项结果",
                	"sZeroRecords":  "没有匹配结果",
                	"sInfo":         "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
                	"sInfoEmpty":    "显示第 0 至 0 项结果，共 0 项",
                	"sInfoFiltered": "(由 _MAX_ 项结果过滤)",
                	"sInfoPostFix":  "",
                	"sSearch":       "搜索: ",
                	"sUrl":          "",
                	"sEmptyTable":     "表中数据为空",
                	"sLoadingRecords": "载入中...",
                	"sInfoThousands":  ",",
                	"oPaginate": {
                		"sFirst":    "首页",
                		"sPrevious": "上页",
                		"sNext":     "下页",
                		"sLast":     "末页"
                	},
                	"oAria": {
                		"sSortAscending":  ": 以升序排列此列",
                		"sSortDescending": ": 以降序排列此列"
                	}
                }
               
        });
    });

    </script>
        